<?php

namespace app\admin\validate\member;

use ShidianUtil\Thinkphp\Validate\BaseValidate;

/**
 * Class Legal
 * @package app\admin\validate\member
 * @link https://www.kancloud.cn/manual/thinkphp6_0/1037623
 * @see \app\admin\controller\member\Legal
 */
class Legal extends BaseValidate
{

    /**
     * 定义验证规则
     * 格式：'字段名' =>  ['规则1','规则2'...]
     *
     * @var array
     */
    protected $rule = [
        'id'	=> 'isId',
		'sid'	=> 'scalar|max:255',
		'status'	=> 'integer|egt:0|max:3',
		'checkStatus'	=> 'integer|egt:0|max:1',
		'type'	=> 'integer|egt:0|max:1',
		'subType'	=> 'integer|egt:0|max:3',
		'phone'	=> 'scalar|max:11',
		'origin'	=> 'scalar|max:32',
		'qCellCoreProvince'	=> 'scalar|max:30',
		'qCellCoreCity'	=> 'scalar|max:30',
		'modPhoneTime'	=> 'likeId',
		'passwd'	=> 'scalar|max:60',
		'salt'	=> 'scalar|max:9',
		'unionid'	=> 'scalar|max:60',
		'openidWeiXin'	=> 'scalar|max:60',
		'openidWechat'	=> 'scalar|max:60',
		'openidWechatOpen'	=> 'scalar|max:60',
		'unionidBaidu'	=> 'scalar|max:60',
		'openidBaidu'	=> 'scalar|max:60',
		'unionidDouyin'	=> 'scalar|max:60',
		'openidDouyin'	=> 'scalar|max:60',
		'nickname'	=> 'scalar|max:50',
		'headImgUrl'	=> 'scalar|max:255',
		'cropImgUrl'	=> 'scalar|max:255',
		'wanzhengNicheng'	=> 'integer|egt:0|max:3',
		'wanzhengTouxiang'	=> 'integer|egt:0|max:3',
		'followedWechat'	=> 'integer|egt:0|max:3',
		'channel'	=> 'integer|egt:0|max:3',
		'pf'	=> 'scalar|max:32',
		'chain'	=> 'scalar|max:32',
		'promotionGroupId'	=> 'integer|egt:0|max:10',
		'provinceId'	=> 'integer|egt:0|max:11',
		'cityId'	=> 'integer|egt:0|max:11',
		'gender'	=> 'integer|max:1',
		'muted'	=> 'integer|max:1',
		'mutedLength'	=> 'integer|max:1',
		'mutedTime'	=> 'likeId',
		'mutedCause'	=> 'scalar|max:255',
		'mutedUserId'	=> 'integer|max:11',
		'mutedActionTime'	=> 'likeId',
		'disabledUserId'	=> 'integer|max:11',
		'disabledActionTime'	=> 'likeId',
		'isSettled'	=> 'integer|max:1',
		'realname'	=> 'scalar|max:30',
		'matchStatus'	=> 'integer|egt:0|max:3',
		'isInviter'	=> 'integer|egt:0|max:3',
		'inviterTime'	=> 'likeId',
		'inviteCode'	=> 'scalar|max:16',
		'inviteTotalMoney'	=> 'numeric|egt:0',
		'inviteCoinTime'	=> 'likeId',
		'inviteCardTime'	=> 'likeId',
		'axbPhone'	=> 'scalar|max:16',
		'companyId'	=> 'integer|egt:0|max:10',
		'userPersonnelId'	=> 'integer|egt:0|max:10',
		'svip'	=> 'integer|egt:0|max:3',
		'svipTime'	=> 'likeId',
		'svipAgree'	=> 'integer|egt:0|max:3',
		'svipAgreeTime'	=> 'likeId',
		'updated'	=> 'integer|max:11',
		'created'	=> 'integer|max:11',
		'isPromotionUser'	=> 'integer|egt:0|max:1',
        'page'      => 'integer|egt:0|max:11',
        'page_size' => 'integer|egt:0|max:11',
    ];

    protected $field = [
        'id'	=> 'id',
		'sid'	=> 'sid',
		'status'	=> 'status',
		'checkStatus'	=> 'checkStatus',
		'type'	=> 'type',
		'subType'	=> 'subType',
		'phone'	=> 'phone',
		'origin'	=> 'origin',
		'qCellCoreProvince'	=> 'qCellCoreProvince',
		'qCellCoreCity'	=> 'qCellCoreCity',
		'modPhoneTime'	=> 'modPhoneTime',
		'passwd'	=> 'passwd',
		'salt'	=> 'salt',
		'unionid'	=> 'unionid',
		'openidWeiXin'	=> 'openidWeiXin',
		'openidWechat'	=> 'openidWechat',
		'openidWechatOpen'	=> 'openidWechatOpen',
		'unionidBaidu'	=> 'unionidBaidu',
		'openidBaidu'	=> 'openidBaidu',
		'unionidDouyin'	=> 'unionidDouyin',
		'openidDouyin'	=> 'openidDouyin',
		'nickname'	=> 'nickname',
		'headImgUrl'	=> 'headImgUrl',
		'cropImgUrl'	=> 'cropImgUrl',
		'wanzhengNicheng'	=> 'wanzhengNicheng',
		'wanzhengTouxiang'	=> 'wanzhengTouxiang',
		'followedWechat'	=> 'followedWechat',
		'channel'	=> 'channel',
		'pf'	=> 'pf',
		'chain'	=> 'chain',
		'promotionGroupId'	=> 'promotionGroupId',
		'provinceId'	=> 'provinceId',
		'cityId'	=> 'cityId',
		'gender'	=> 'gender',
		'muted'	=> 'muted',
		'mutedLength'	=> 'mutedLength',
		'mutedTime'	=> 'mutedTime',
		'mutedCause'	=> 'mutedCause',
		'mutedUserId'	=> 'mutedUserId',
		'mutedActionTime'	=> 'mutedActionTime',
		'disabledUserId'	=> 'disabledUserId',
		'disabledActionTime'	=> 'disabledActionTime',
		'isSettled'	=> 'isSettled',
		'realname'	=> 'realname',
		'matchStatus'	=> 'matchStatus',
		'isInviter'	=> 'isInviter',
		'inviterTime'	=> 'inviterTime',
		'inviteCode'	=> 'inviteCode',
		'inviteTotalMoney'	=> 'inviteTotalMoney',
		'inviteCoinTime'	=> 'inviteCoinTime',
		'inviteCardTime'	=> 'inviteCardTime',
		'axbPhone'	=> 'axbPhone',
		'companyId'	=> 'companyId',
		'userPersonnelId'	=> 'userPersonnelId',
		'svip'	=> 'svip',
		'svipTime'	=> 'svipTime',
		'svipAgree'	=> 'svipAgree',
		'svipAgreeTime'	=> 'svipAgreeTime',
		'updated'	=> 'updated',
		'created'	=> 'created',
		'isPromotionUser'	=> 'isPromotionUser',
        'page'      => '分页页数',
        'page_size' => '分页大小',
    ];

    /**
     * 定义错误信息
     * 格式：'字段名.规则名' =>  '错误信息'
     *
     * @var array
     */
    protected $message = [
        'id.require'	=> '缺少:attribute',
		'id.isId'	=> '请设置正确的:attribute',
		'sid.require'	=> '请输入:attribute',
		'sid.scalar' => ':attribute应该是字符串',
		'sid.max'	=> ':attribute长度不能超过:rule位',
		'status.require'	=> '请输入:attribute',
		'status.integer' => ':attribute应该是整数',
		'status.egt'	=> ':attribute应该大于等于:rule',
		'status.max'	=> ':attribute长度不能超过:rule位',
		'checkStatus.require'	=> '请输入:attribute',
		'checkStatus.integer' => ':attribute应该是整数',
		'checkStatus.egt'	=> ':attribute应该大于等于:rule',
		'checkStatus.max'	=> ':attribute长度不能超过:rule位',
		'type.require'	=> '请输入:attribute',
		'type.integer' => ':attribute应该是整数',
		'type.egt'	=> ':attribute应该大于等于:rule',
		'type.max'	=> ':attribute长度不能超过:rule位',
		'subType.require'	=> '请输入:attribute',
		'subType.integer' => ':attribute应该是整数',
		'subType.egt'	=> ':attribute应该大于等于:rule',
		'subType.max'	=> ':attribute长度不能超过:rule位',
		'phone.require'	=> '请输入:attribute',
		'phone.scalar' => ':attribute应该是字符串',
		'phone.max'	=> ':attribute长度不能超过:rule位',
		'origin.require'	=> '请输入:attribute',
		'origin.scalar' => ':attribute应该是字符串',
		'origin.max'	=> ':attribute长度不能超过:rule位',
		'qCellCoreProvince.require'	=> '请输入:attribute',
		'qCellCoreProvince.scalar' => ':attribute应该是字符串',
		'qCellCoreProvince.max'	=> ':attribute长度不能超过:rule位',
		'qCellCoreCity.require'	=> '请输入:attribute',
		'qCellCoreCity.scalar' => ':attribute应该是字符串',
		'qCellCoreCity.max'	=> ':attribute长度不能超过:rule位',
		'modPhoneTime.require'	=> '请选择:attribute',
		'modPhoneTime.isId'	=> '请选择正确的:attribute',
		'passwd.require'	=> '请输入:attribute',
		'passwd.scalar' => ':attribute应该是字符串',
		'passwd.max'	=> ':attribute长度不能超过:rule位',
		'salt.require'	=> '请输入:attribute',
		'salt.scalar' => ':attribute应该是字符串',
		'salt.max'	=> ':attribute长度不能超过:rule位',
		'unionid.require'	=> '请输入:attribute',
		'unionid.scalar' => ':attribute应该是字符串',
		'unionid.max'	=> ':attribute长度不能超过:rule位',
		'openidWeiXin.require'	=> '请输入:attribute',
		'openidWeiXin.scalar' => ':attribute应该是字符串',
		'openidWeiXin.max'	=> ':attribute长度不能超过:rule位',
		'openidWechat.require'	=> '请输入:attribute',
		'openidWechat.scalar' => ':attribute应该是字符串',
		'openidWechat.max'	=> ':attribute长度不能超过:rule位',
		'openidWechatOpen.require'	=> '请输入:attribute',
		'openidWechatOpen.scalar' => ':attribute应该是字符串',
		'openidWechatOpen.max'	=> ':attribute长度不能超过:rule位',
		'unionidBaidu.require'	=> '请输入:attribute',
		'unionidBaidu.scalar' => ':attribute应该是字符串',
		'unionidBaidu.max'	=> ':attribute长度不能超过:rule位',
		'openidBaidu.require'	=> '请输入:attribute',
		'openidBaidu.scalar' => ':attribute应该是字符串',
		'openidBaidu.max'	=> ':attribute长度不能超过:rule位',
		'unionidDouyin.require'	=> '请输入:attribute',
		'unionidDouyin.scalar' => ':attribute应该是字符串',
		'unionidDouyin.max'	=> ':attribute长度不能超过:rule位',
		'openidDouyin.require'	=> '请输入:attribute',
		'openidDouyin.scalar' => ':attribute应该是字符串',
		'openidDouyin.max'	=> ':attribute长度不能超过:rule位',
		'nickname.require'	=> '请输入:attribute',
		'nickname.scalar' => ':attribute应该是字符串',
		'nickname.max'	=> ':attribute长度不能超过:rule位',
		'headImgUrl.require'	=> '请输入:attribute',
		'headImgUrl.scalar' => ':attribute应该是字符串',
		'headImgUrl.max'	=> ':attribute长度不能超过:rule位',
		'cropImgUrl.require'	=> '请输入:attribute',
		'cropImgUrl.scalar' => ':attribute应该是字符串',
		'cropImgUrl.max'	=> ':attribute长度不能超过:rule位',
		'wanzhengNicheng.require'	=> '请输入:attribute',
		'wanzhengNicheng.integer' => ':attribute应该是整数',
		'wanzhengNicheng.egt'	=> ':attribute应该大于等于:rule',
		'wanzhengNicheng.max'	=> ':attribute长度不能超过:rule位',
		'wanzhengTouxiang.require'	=> '请输入:attribute',
		'wanzhengTouxiang.integer' => ':attribute应该是整数',
		'wanzhengTouxiang.egt'	=> ':attribute应该大于等于:rule',
		'wanzhengTouxiang.max'	=> ':attribute长度不能超过:rule位',
		'followedWechat.require'	=> '请输入:attribute',
		'followedWechat.integer' => ':attribute应该是整数',
		'followedWechat.egt'	=> ':attribute应该大于等于:rule',
		'followedWechat.max'	=> ':attribute长度不能超过:rule位',
		'channel.require'	=> '请输入:attribute',
		'channel.integer' => ':attribute应该是整数',
		'channel.egt'	=> ':attribute应该大于等于:rule',
		'channel.max'	=> ':attribute长度不能超过:rule位',
		'pf.require'	=> '请输入:attribute',
		'pf.scalar' => ':attribute应该是字符串',
		'pf.max'	=> ':attribute长度不能超过:rule位',
		'chain.require'	=> '请输入:attribute',
		'chain.scalar' => ':attribute应该是字符串',
		'chain.max'	=> ':attribute长度不能超过:rule位',
		'promotionGroupId.require'	=> '请输入:attribute',
		'promotionGroupId.integer' => ':attribute应该是整数',
		'promotionGroupId.egt'	=> ':attribute应该大于等于:rule',
		'promotionGroupId.max'	=> ':attribute长度不能超过:rule位',
		'provinceId.require'	=> '请输入:attribute',
		'provinceId.integer' => ':attribute应该是整数',
		'provinceId.egt'	=> ':attribute应该大于等于:rule',
		'provinceId.max'	=> ':attribute长度不能超过:rule位',
		'cityId.require'	=> '请输入:attribute',
		'cityId.integer' => ':attribute应该是整数',
		'cityId.egt'	=> ':attribute应该大于等于:rule',
		'cityId.max'	=> ':attribute长度不能超过:rule位',
		'gender.require'	=> '请输入:attribute',
		'gender.integer' => ':attribute应该是整数',
		'gender.max'	=> ':attribute长度不能超过:rule位',
		'muted.require'	=> '请输入:attribute',
		'muted.integer' => ':attribute应该是整数',
		'muted.max'	=> ':attribute长度不能超过:rule位',
		'mutedLength.require'	=> '请输入:attribute',
		'mutedLength.integer' => ':attribute应该是整数',
		'mutedLength.max'	=> ':attribute长度不能超过:rule位',
		'mutedTime.require'	=> '请选择:attribute',
		'mutedTime.isId'	=> '请选择正确的:attribute',
		'mutedCause.require'	=> '请输入:attribute',
		'mutedCause.scalar' => ':attribute应该是字符串',
		'mutedCause.max'	=> ':attribute长度不能超过:rule位',
		'mutedUserId.require'	=> '请输入:attribute',
		'mutedUserId.integer' => ':attribute应该是整数',
		'mutedUserId.max'	=> ':attribute长度不能超过:rule位',
		'mutedActionTime.require'	=> '请选择:attribute',
		'mutedActionTime.isId'	=> '请选择正确的:attribute',
		'disabledUserId.require'	=> '请输入:attribute',
		'disabledUserId.integer' => ':attribute应该是整数',
		'disabledUserId.max'	=> ':attribute长度不能超过:rule位',
		'disabledActionTime.require'	=> '请选择:attribute',
		'disabledActionTime.isId'	=> '请选择正确的:attribute',
		'isSettled.require'	=> '请输入:attribute',
		'isSettled.integer' => ':attribute应该是整数',
		'isSettled.max'	=> ':attribute长度不能超过:rule位',
		'realname.require'	=> '请输入:attribute',
		'realname.scalar' => ':attribute应该是字符串',
		'realname.max'	=> ':attribute长度不能超过:rule位',
		'matchStatus.require'	=> '请输入:attribute',
		'matchStatus.integer' => ':attribute应该是整数',
		'matchStatus.egt'	=> ':attribute应该大于等于:rule',
		'matchStatus.max'	=> ':attribute长度不能超过:rule位',
		'isInviter.require'	=> '请输入:attribute',
		'isInviter.integer' => ':attribute应该是整数',
		'isInviter.egt'	=> ':attribute应该大于等于:rule',
		'isInviter.max'	=> ':attribute长度不能超过:rule位',
		'inviterTime.require'	=> '请选择:attribute',
		'inviterTime.isId'	=> '请选择正确的:attribute',
		'inviteCode.require'	=> '请输入:attribute',
		'inviteCode.scalar' => ':attribute应该是字符串',
		'inviteCode.max'	=> ':attribute长度不能超过:rule位',
		'inviteTotalMoney.require'	=> '请输入:attribute',
		'inviteTotalMoney.numeric' => ':attribute应该是数字',
		'inviteTotalMoney.egt'	=> ':attribute应该大于等于:rule',
		'inviteCoinTime.require'	=> '请选择:attribute',
		'inviteCoinTime.isId'	=> '请选择正确的:attribute',
		'inviteCardTime.require'	=> '请选择:attribute',
		'inviteCardTime.isId'	=> '请选择正确的:attribute',
		'axbPhone.require'	=> '请输入:attribute',
		'axbPhone.scalar' => ':attribute应该是字符串',
		'axbPhone.max'	=> ':attribute长度不能超过:rule位',
		'companyId.require'	=> '请输入:attribute',
		'companyId.integer' => ':attribute应该是整数',
		'companyId.egt'	=> ':attribute应该大于等于:rule',
		'companyId.max'	=> ':attribute长度不能超过:rule位',
		'userPersonnelId.require'	=> '请输入:attribute',
		'userPersonnelId.integer' => ':attribute应该是整数',
		'userPersonnelId.egt'	=> ':attribute应该大于等于:rule',
		'userPersonnelId.max'	=> ':attribute长度不能超过:rule位',
		'svip.require'	=> '请输入:attribute',
		'svip.integer' => ':attribute应该是整数',
		'svip.egt'	=> ':attribute应该大于等于:rule',
		'svip.max'	=> ':attribute长度不能超过:rule位',
		'svipTime.require'	=> '请选择:attribute',
		'svipTime.isId'	=> '请选择正确的:attribute',
		'svipAgree.require'	=> '请输入:attribute',
		'svipAgree.integer' => ':attribute应该是整数',
		'svipAgree.egt'	=> ':attribute应该大于等于:rule',
		'svipAgree.max'	=> ':attribute长度不能超过:rule位',
		'svipAgreeTime.require'	=> '请选择:attribute',
		'svipAgreeTime.isId'	=> '请选择正确的:attribute',
		'updated.require'	=> '请输入:attribute',
		'updated.integer' => ':attribute应该是整数',
		'updated.max'	=> ':attribute长度不能超过:rule位',
		'created.require'	=> '请输入:attribute',
		'created.integer' => ':attribute应该是整数',
		'created.max'	=> ':attribute长度不能超过:rule位',
		'isPromotionUser.require'	=> '请输入:attribute',
		'isPromotionUser.integer' => ':attribute应该是整数',
		'isPromotionUser.egt'	=> ':attribute应该大于等于:rule',
		'isPromotionUser.max'	=> ':attribute长度不能超过:rule位',
        'page.require'      => '请输入:attribute',
        'page.integer'      => ':attribute应该是整数',
        'page.egt'          => ':attribute应该大于等于:rule',
        'page.max'          => ':attribute长度不能超过:rule位',
        'page_size.require' => '请输入:attribute',
        'page_size.integer' => ':attribute应该是整数',
        'page_size.egt'     => ':attribute应该大于等于:rule',
        'page_size.max'     => ':attribute长度不能超过:rule位',
    ];

    protected $scene = [
        'delete' => ['id' => 'require'],
        'index'  => ['page', 'page_size'],
        'read'   => ['id' => 'require'],
        'save'   => ['sid', 'status', 'checkStatus', 'type', 'subType', 'phone', 'origin', 'qCellCoreProvince', 'qCellCoreCity', 'modPhoneTime', 'passwd', 'salt', 'unionid', 'openidWeiXin', 'openidWechat', 'openidWechatOpen', 'unionidBaidu', 'openidBaidu', 'unionidDouyin', 'openidDouyin', 'nickname', 'headImgUrl', 'cropImgUrl', 'wanzhengNicheng', 'wanzhengTouxiang', 'followedWechat', 'channel', 'pf', 'chain', 'promotionGroupId', 'provinceId', 'cityId', 'gender', 'muted', 'mutedLength', 'mutedTime', 'mutedCause', 'mutedUserId', 'mutedActionTime', 'disabledUserId', 'disabledActionTime', 'isSettled', 'realname', 'matchStatus', 'isInviter', 'inviterTime', 'inviteCode', 'inviteTotalMoney', 'inviteCoinTime', 'inviteCardTime', 'axbPhone', 'companyId', 'userPersonnelId', 'svip', 'svipTime', 'svipAgree', 'svipAgreeTime', 'updated', 'created', 'isPromotionUser'],
    ];

}
